package com.movie.mapper;

import com.movie.entity.Favorite;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface FavoriteMapper {
    int insertFavorite(Favorite favorite);
    int deleteFavorite(@Param("userId") Integer userId, @Param("movieId") Integer movieId);
    int checkIfFavorite(@Param("userId") Integer userId, @Param("movieId") Integer movieId);
}
